package Lecture7;

public class ClassExam3 {

	
	public static void main(String[] args) 
	{
		printString(3, "Honda" , " Ford" );
	}

	public static void printString(int a, String... str) //String[]
	{
		for(int i = 0; i < str.length; i++)
		{
			String s = str[i];
			System.out.println(s);
		}
		
		for(String s : str)  //forEach
		{
			System.out.println(str);
		}	
	}
	
	

	
	
}
